<?php
/**
 * Created by PhpStorm.
 * User: jungshen
 * Date: 2018/8/6
 * Time: 15:47
 */

namespace app\api\validate;


use think\Validate;

class Cases extends Validate
{
    protected $rule = [
        'title|名称'  =>  'require|max:30',
        'images|案例图片' =>  'require',
    ];
    // edit 验证场景定义
    public function sceneEdit()
    {
        return $this->append('id', 'require|integer');
    }
}